home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-20 / bb21c.zip / SERVER.DOC < prev    next >
Text File  |  1993-02-15  |  3KB  |  70 lines

  1. There are three commands for SERVERS
  2.  
  3.  *   ES options server file parms -- Execute a server.  Example:
  4.                           ES REQDIR D:\PATH\T17.EXE
  5.                           ES [IZ] REQFIL DOS BATNAM
  6.                     Use the second example for DOS commands and BAT files.
  7.  
  8.  *   EL -- Same as ES but will automatically do a GL after the server runs.
  9.                           EL DUMMY BBLOOK.EXE
  10.  
  11.  *   EX options file parms -- Execute another program.  Example:
  12.                           EX D:\PATH\T17.EXE
  13.                           EX DOS BATNAM
  14.                           EX [L] BBLOOK.EXE
  15.                     Use the second example for DOS commands and BAT files.
  16.  
  17. All of these commands execute DOS programs.  In all cases, you must
  18. specify a "file".  This is the exact name (including extension) of the
  19. program you want to run.  Example XXX.COM, D:\YYY.EXE.  You must have
  20. the path if the program is not in the current directory.
  21.  
  22. Alternatively, you can specify the magic word called "DOS".  BB will
  23. then execute the program called COMMAND.COM and pass the parms to it.
  24. In this manner you can execute DOS commands, batch files, etc.
  25.  
  26. The options specify what should be done before and after the actual DOS
  27. program run.  The options are specified in brackets.  Possible values
  28. are:
  29.  
  30.     E -- Run EXPORT before the program
  31.     Q -- If no EXPORT file for input to server, skip server.
  32.     K -- Kill messages that are exported (only useful if E is specified)
  33.     I -- Run IMPORT after the program
  34.     Z -- Erase file that is imported (only useful if I is specified)
  35.     L -- Run GL after the program
  36.     A -- Run at any time.  Don't check BBS busy
  37.     S -- Silent -- Supress all informational messages
  38.     O -- Copy the file portchan.OUT to the user executing the command
  39.          if it exists.  The current portchan is accessible via the $y
  40.          parameter.
  41.  
  42.     ES assumes the options are [EKIZ]
  43.     EL assumes the options are [L]
  44.  
  45.     If you specify options on either EL or ES, those options replace
  46.     the defaults.
  47.  
  48. The difference between EX and ES is that ES includes a server name.
  49. (Note:  EL also requires a server name).  Using the default options:
  50.  
  51.     ES REQDIR D:\PATH\T17.EXE
  52.  
  53.     is the same as
  54.  
  55.     EXPORTK REQDIR.IN E REQDIR
  56.     EX D:\PATH\T17.EXE
  57.     IMPORTE REQDIR.OUT
  58.  
  59.     E REQDIR means export messages to REQDIR and the @ field is blank or
  60.     this BBS.
  61.  
  62. When writing a server, try to keep to using IMPORT and EXPORT for
  63. getting messages in and out of the BBS.  This will allow you to continue
  64. to run even after I change the file formats.
  65.  
  66. NOTE:  Using the "A" option will allow your server to run even if the
  67. BBS is busy.  However, while the server is running, all other activity
  68. is STOPPED so any server should run very very quickly.
  69.  
  70.